package service.impl;

import mapper.BookMapper;
import mapper.BookRecordMapper;
import mapper.CategoryMapper;
import org.apache.ibatis.session.SqlSession;
import pojo.Category;
import service.CategoryService;
import utils.GetSqlSession;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-07
 * Time: 11:36
 */
public class CategoryServiceImpl implements CategoryService {
    SqlSession sqlSession = GetSqlSession.getSqlSession();
    CategoryMapper categoryMapper =  sqlSession.getMapper(CategoryMapper.class);

    @Override
    public Category getCategoryByAccount(String account) {
        return categoryMapper.getCategoryByAccount(account);
    }
}
